<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画懒加载2</title>
    <link rel="stylesheet" href="./css/animate.min.css">
    <style>
        body{
            height: 3000px;
        }
        div.block{
            height: 600px;
            background-color: rgb(217, 235, 190);
        }
        .img{
            width: 100%;
        }
       
        .lazy-animate{
            animation-play-state: paused;
        }
        .animate_run{
            animation-play-state: running !important;
        }
        
    </style>
</head>
<body>
    <h1>动画懒加载</h1>
    <div>
        <img class="img animate__animated animate__rotateIn " src="./img/html5_fit_peo.jpg" alt="">
    </div>
    <div><img class="animate__animated animate__backInLeft lazy-animate"  src="./img/html5_statistics.png" alt=""></div>
    <div class="block"></div>
    <h2 id="text" class="animate__animated animate__bounceInDown lazy-animate">我来了</h2>
    <script src="./js/lazy-animate.js"></script>
</body>
</html>